{% extends "map/new_base.html" %}

{% comment %}

  All Markers Page (posible alernative landing page)
  ------------------
  
  This page will display all markers grouped by type

{% endcomment %}

{% block javascript %} 
  <style type="text/css">
    
    .ui-rater-starsOff {
                          height: 18px;
                          width: 90px;
                          display: inline-block;
                          background: url(/assets/javascript/stars.png) repeat-x 0 0px;
                       }
                       
    .ui-rater-starsOn  {
                           height: 18px;
                           top: 0;
                           height: 18px;
                           width: 0px;
                           background: url(/assets/javascript/stars.png) repeat-x 0 -36px;
                       }
  </style>

<script type="text/javascript" src="/assets/javascript/generated_toc.js" class="generate_for_page"/></script>
{% endblock %}



{% block title %}
  Potton Online  |  All Markers
{% endblock %}



{% block page_middle %}
<div id="generated-toc"></div>

  {% regroup markers|dictsort:"itemtype.name" by itemtype as marker_list %}
  {% for type in marker_list %}
    <h1> {{type.grouper}} </h1>
    {% for item in type.list|dictsort:"name" %}
      <a href="/{{item.slug}}">{{ item.name }} </a><br />
      {% if item.public_phone %}{{ item.public_phone }} <br />{% endif %}
      {{ item.description }} <br />
      {% if item.thumbnail %}<img src="{{item.thumbnail}}" alt="Picture fail"><br />{% endif %}
      <br />
    {% endfor %}
    <hr />
  {% endfor %}  
{% endblock %}

{% block page_left %}
  {% include 'map/default_pageleft.html' %}
{% endblock %}

{% block page_right %}
  {% include 'map/default_pageright.html' %}
{% endblock %}


